#include "runtimeEnvironment.h"
#include "types.h"
#include <string>
using namespace std;

void RuntimeEnvironment::init(int argc, char *argv[]) {
	if(argc > 1)
		return ;
	string mainClassName(argv[0]);
	mainClass.loadClass(mainClassName);
	ClassHeap.insert(make_pair(mainClassName,mainClass));
}

void RuntimeEnvironment::startVM(){
	mainThread.run(mainClass,L"main");
}

